import { ProjectParsing } from "../../../core/person";

(async () => {
    console.log("ProjectParsing");
    console.log("#step");
    console.log("解析项目");

    // const projectName = "brocade";
    // const projectPath = process.cwd() + "/src/";
    const projectName = "ChatDev";
    const projectPath = process.cwd() + "/temp/ChatDev/";
    // const projectName = "Win11desktopClock";
    // const projectPath = process.cwd() + "/temp/Win11desktopClock/";
    const projectParsing = new ProjectParsing({
        projectName
    });
    try {
        const result = await projectParsing.step(projectPath);
        console.log(result);
        console.log("解析成功");
        console.log(JSON.stringify(result));
    } catch (err) {
        console.error(err);
    }
})();
